</div>
<!-- /.content-wrapper -->
<!-- Main Footer -->
<footer class="main-footer">
    <!-- To the right -->
    <div class="pull-right hidden-xs">
        Anything you want
    </div>
    <!-- Default to the left -->
    <strong>Copyright &copy; 2016 <a href="#">Company</a>.</strong> All rights reserved.
</footer>
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
        <li class="active"><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-home"></i></a></li>
        <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
        <!-- Home tab content -->
        <div class="tab-pane active" id="control-sidebar-home-tab">
            <h3 class="control-sidebar-heading">Recent Activity</h3>
            <ul class="control-sidebar-menu">
                <li>
                    <a href="javascript:void(0);">
                        <i class="menu-icon fa fa-birthday-cake bg-red"></i>
                        <div class="menu-info">
                            <h4 class="control-sidebar-subheading">Langdon's Birthday</h4>
                            <p>
                                Will be 23 on April 24th
                            </p>
                        </div>
                    </a>
                </li>
            </ul>
            <!-- /.control-sidebar-menu -->
            <h3 class="control-sidebar-heading">Tasks Progress</h3>
            <ul class="control-sidebar-menu">
                <li>
                    <a href="javascript::;">
                        <h4 class="control-sidebar-subheading">
                            Custom Template Design
                            <span class="pull-right-container">
				<span class="label label-danger pull-right">70%</span>
				</span>
                        </h4>
                        <div class="progress progress-xxs">
                            <div class="progress-bar progress-bar-danger" style="width: 70%">
                            </div>
                        </div>
                    </a>
                </li>
            </ul>
            <!-- /.control-sidebar-menu -->
        </div>
        <!-- /.tab-pane -->
        <!-- Stats tab content -->
        <div class="tab-pane" id="control-sidebar-stats-tab">
            Stats Tab Content
        </div>
        <!-- /.tab-pane -->
        <!-- Settings tab content -->
        <div class="tab-pane" id="control-sidebar-settings-tab">
            <form method="post">
                <h3 class="control-sidebar-heading">General Settings</h3>
                <div class="form-group">
                    <label class="control-sidebar-subheading">
                        Report panel usage
                        <input type="checkbox" class="pull-right" checked>
                    </label>
                    <p>
                        Some information about this general settings option
                    </p>
                </div>
                <!-- /.form-group -->
            </form>
        </div>
        <!-- /.tab-pane -->
    </div>
</aside>
<!-- /.control-sidebar -->
<!-- Add the sidebar's background. This div must be placed
     immediately after the control sidebar -->
<div class="control-sidebar-bg">
</div>
</div>
<!-- ./wrapper -->
<script src="${base!}/static/admin/js/luger.js"></script>

<script src="${base!}/static/admin/js/lib/bootstrap/bootstrap.js"></script>
<script src="${base!}/static/admin/js/lib/slimscroll/jquery.slimscroll.js"></script>
<script src="${base!}/static/admin/js/app.js"></script>
<script src="${base!}/static/admin/js/lib/pjax/jquery.pjax.js"></script>

<script src="${base!}/static/admin/js/lib/datatables/js/jquery.dataTables.js"></script>
<script src="${base!}/static/admin/js/lib/jqueryForm/jquery.form.js"></script>
<script src="${base!}/static/admin/js/lib/toast/toastr.min.js"></script>
<script src="${base!}/static/admin/js/lib/toast/toast.js"></script>
<script src="${base!}/static/admin/js/lib/parsley/parsley.min.js"></script>
<script src="${base!}/static/admin/js/lib/parsley/parsley.zh_cn.js"></script>

<script src="${base!}/static/admin/js/lib/bootstrap-multiselect/js/bootstrap-multiselect.js"></script>
<script src="${base!}/static/admin/js/lib/contextMenu/jquery.contextMenu.js"></script>

<script src="${base!}/static/admin/js/lib/iCheck/icheck.js"></script>
<script src="${base!}/static/admin/js/lib/clipboard/clipboard.js"></script>

<script src="${base!}/static/admin/js/lib/ztree/jquery.ztree.all.min.js"></script>
<script type="text/javascript">
    function initICheck() {
        $('input.ichk').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green',
            increaseArea: '20%' // optional
        });
    }
    function initContextMenu(){
        return;
        if(!$(".panel-body .table tbody tr")){
            return;
        }
        $.contextMenu({
            selector: '.panel-body .table tbody tr',
            callback: function(key, options) {

            },
            items: {
                "detail": {
                    name: "查看",
                    icon: "fa-eye",
                    callback: function(key, opt){
                        showDetail($(this).data('rowid'));
                    }
                },
                "edit": {
                    name: "更新",
                    icon: "fa-edit",
                    callback: function(key, opt){
                        update($(this).data('rowid'));
                    }
                },
                "cut": {
                    name: "删除",
                    icon: "fa-times",
                    callback: function(key, opt){
                        del($(this).data('rowid'));
                    }
                },
                "sep1": "---------",
                "copy":{
                    name: "复制",
                    icon: "fa-copy",
                    callback: function(key, opt){
                        var txt = window.getSelection?window.getSelection():document.selection.createRange().text;
                        if(txt == ''){
                            Toast.warning("您未选中任何文字");
                            return;
                        }
                        document.execCommand('copy');
                    }
                }

            }
        });
    }
    function initPageEvent() {
        initICheck();
        initContextMenu();
    }
    
    function pjaxPage(pageUrl) {
        if($.support.pjax) {
            $.pjax({url: pageUrl, container: '#content-wrapper'});
            return false;
        }else{
            window.location = pageUrl;
        }
    }

    function clearRemoteModal() {
        $('body').on('hidden.bs.modal', '.modal[data-autoclear]', function () {
            $(this).removeData('bs.modal');
        });
    }
    
    function initDataTableCommon() {
        $("body").on("mouseover",".table tbody tr",function () {
            $(this).addClass("highlight").siblings("tr").removeClass("highlight")
        });
        $("body").on("mouseleave",".table tbody tr", function () {
            $(this).removeClass("highlight");
        })
    }
    $(document).ready(function(){

        if($.support.pjax) {
            var pjaxSetting = {
                maxCacheLength:50,
                fragment: '#content-wrapper',
                container: '#content-wrapper',
                timeout: 8000
            };
            $(document).pjax('a[data-pjax]', '#content-wrapper',pjaxSetting)
        }

        $(document).on('pjax:end', function() {
            initPageEvent();
        });
        initPageEvent();
        clearRemoteModal();
        initDataTableCommon();


    })
</script>
</body>
</html>